package io.p2p.stream.turn.model;

import io.p2p.stream.turn.util.PropertiesUtil;

import java.util.Properties;

public class TurnSharedModel {
    private static final String CONFIG_FILE = "config.properties";

    public static String turnServerName = null;

    public static String turnServerFirstIP = null;

    public static int turnServerFirstPort = 0;

    static {
        Properties config = PropertiesUtil.loadConfig(CONFIG_FILE);

        turnServerName = config.getProperty("turn.server.name","turn01");
        turnServerFirstIP = config.getProperty("udp.turn.server.first.ip", "127.0.0.1");
        turnServerFirstPort = Integer.parseInt(config.getProperty("udp.turn.server.first.port", "53001"));
    }

}
